package com.tangk.tool.author;

import java.util.HashMap;
import java.util.Map;
import java.util.logging.Logger;

import com.tangk.tool.ITools;

public class AuthorTools implements ITools{

	private static AuthorTools instance = new AuthorTools();
	private AuthorTools(){
		
	}

	@Override
	public Map<String, Object> doIt(Map<String, Object> params) {
		
		Map<String, Object> rstMap = new HashMap<>();
		IAuthor author = AuthorFactory.createDefaultAuthor();
		rstMap.put("value",  author.proccess());
		rstMap.put("valueType", String.class);
		
		return rstMap;
	}

	public static ITools getInstance() {
		return instance;
	}

	@Override
	public void end() {
		
	}
}
